//
//  ColoredView.m
//  Daily Wallpaper Changer for Bing
//
//  Created by 杨岑 on 3/11/15.
//  Copyright (c) 2015 杨岑. All rights reserved.
//

#import "ColoredView.h"

@implementation ColoredView
{
    NSColor* _bgColor;
}

- (NSColor *)bgColor
{
    return _bgColor;
}

- (void)setBgColor:(NSColor *)bgColor
{
    _bgColor = bgColor;
    self.needsDisplay = YES;
}

- (void)drawRect:(NSRect)dirtyRect {
    [self.bgColor set];
    NSRectFill(self.bounds);
}

@end
